<HTML>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <script src="./jq下拉列表/dist/js/jquery.min.js"></script>

</head>
<BODY>
    <input type="radio" id="ff" name="a" class="rad" value="1">
    <input type="radio" id="gg" name="a" class="rad" value="0">
<input type="text" id="button">
</BODY>


</HTML>
<script type="text/javascript">
    /*jq选择框可用不可用demo*/
    (function(){
        $(".rad").click(function(){
            if($(this).val()==1){
                $("#button").attr("disabled",true);
            }
            if($(this).val()==0){
                $("#button").attr("disabled",false);
            }
        })
    })()

</script>